/**
 * 
 */
package org.demetra.core;

import java.io.File;
import java.io.IOException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import org.demetra.core.Server;
import org.demetra.core.ServerLoop;

import com.ericsson.otp.erlang.OtpNode;

/**
 * @author vvorobyov
 *
 */
public class Launcher {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		ExecutorService executor = Executors.newFixedThreadPool(10);
		OtpNode node = new OtpNode("jets","zero");
		System.out.println(String.format("Node up [name=%s,cookie=%s]", "jets","zero"));
		Server srv = new JetsService(new File("d:/_bdb"));
		ServerLoop server = new ServerLoop(srv,node,executor);
		server.run();
	}

}
